﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VideoClipNameHelper
{
    public class Articles
    {
        private static Dictionary<string, string> articles = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
        {
            /*
             [0]: "Beach Boys / , The"
    [1]: "Darkness / , The"
    [2]: "Sensational Alex Harvey Band / , The"
    [3]: "Three Degrees / , The"
            */
{"Flock Of Seagulls", "A"},
{"Taste Of Honey", "A"},

{"Roten Rosen", "Die"},
{"Toten Hosen", "Die"},

{"411", "The"},
{"Almighty", "The"},
{"Andrews Sisters", "The"},
{"Angels", "The"},
{"Animals", "The"},
{"Archies", "The"},
{"B-52's", "The"},
{"Band", "The"},
{"Bangles", "The"},
{"Beach Boys", "The" },
{"Beastie Boys", "The"},
{"Beatles", "The"},
{"Beautiful South", "The"},
{"Bee Gees", "The"},
{"Belle Stars", "The"},
{"Beloved", "The"},
{"Black Crowes", "The"},
{"Black Eyed Peas", "The"},
{"Bolshoi", "The"},
{"Brothers Four", "The"},
{"Buggles", "The"},
{"Byrds", "The"},
{"Carpenters", "The"},
{"Cars", "The"},
{"Cascades", "The"},
{"Charlatans", "The"},
{"Chemical Brothers", "The"},
{"Chi-Lites", "The"},
{"Christians", "The"},
{"Clash", "The"},
{"Coasters", "The"},
{"Comets", "The"},
{"Commodores", "The"},
{"Communards", "The"},
{"Connells", "The"},
{"Contours", "The"},
{"Cover Girls", "The"},
{"Cranberries", "The"},
{"Crystals", "The"},
{"Cult", "The"},
{"Cure", "The"},
{"Damned", "The"},
{"Darkness", "The"},
{"Doors", "The"},
{"Drifters", "The"},
{"Eagles", "The"},
{"Easybeats", "The"},
{"Eddie Vedder", "The"},
{"Edgar Winter Group", "The"},
{"Escape Club", "The"},
{"Everly Brothers", "The"},
{"Faces", "The"},
{"Fifth Dimension", "The"},
{"Fixx", "The"},
{"Four Tops", "The"},
{"Gap Band", "The"},
{"Gipsy Kings", "The"},
{"Glitter Band", "The"},
{"Go-Go's", "The"},
{"Gothard Sisters", "The"},
{"Heights", "The"},
{"Hollies", "The"},
{"Human League", "The"},
{"J. Geils Band", "The"},
{"Jam", "The"},
{"Jason Bonham Band", "The"},
{"Jets", "The"},
{"Jimi Hendrix Experience", "The"},
{"Killers", "The"},
{"Kills", "The"},
{"Kingston Trio", "The"},
{"Kinks", "The"},
{"Klf", "The"},
{"Knack", "The"},
{"Knickerbockers", "The"},
{"Lightning Seeds", "The"},
{"Marmalade", "The"},
{"Marvelettes", "The"},
{"Miracles", "The"},
{"Monkees", "The"},
{"Moody Blues", "The"},
{"Motels", "The"},
{"Move", "The"},
{"Movement", "The"},
{"Nitty Gritty Dirt Band", "The"},
{"Offspring", "The"},
{"Outfield", "The"},
{"Platters", "The"},
{"Pogues", "The"},
{"Pointer Sisters", "The"},
{"Police", "The"},
{"Pretenders", "The"},
{"Proclaimers", "The"},
{"Rembrandts", "The"},
{"Righteous Brothers", "The"},
{"Rolling Stones", "The"},
{"Romantics", "The"},
{"Runaways", "The"},
{"Scissor Sisters", "The"},
{"Searchers", "The"},
{"Seekers", "The"},
{"Sensational Alex Harvey Band", "The"},
{"Shadows", "The"},
{"Shirelles", "The"},
{"Sisters of Mercy", "The"},
{"Small Faces", "The"},
{"Smiths", "The"},
{"Soundlovers", "The"},
{"Stone Roses", "The"},
{"Stranglers", "The"},
{"Strokes", "The"},
{"Supremes", "The"},
{"Teens", "The"},
{"Temptations", "The"},
{"Three Degrees", "The"},
{"Tokens", "The"},
{"Traveling Wilburys", "The"},
{"Tremeloes", "The"},
{"Troggs", "The"},
{"Turtles", "The"},
{"Undertones", "The"},
{"Ventures", "The"},
{"Vic Reeves", "The"},
{"Walker Brothers", "The"},
{"Weather Girls", "The"},
{"White Stripes", "The"},
{"Who", "The"},
{"Wonderstuff", "The"},
{"Zombies", "The"}
        };

        /// <summary>
        /// Dostaje nazwę Artist ("Beatles"), jeżeli znajdzie ją w słowniku,
        /// to dodaje przedrostek na końcu ("Beatles, The")
        /// wyszukiwanie jest tekstowe, więc ("The Beatles") nie znajdzie
        /// </summary>
        /// <param name="name">Artist</param>
        /// <returns>Artist + ew. przedrostek</returns>
        public static string GetNameWithArticle(string name)
        {
            if(articles.ContainsKey(name))
            {
                return name + ", " + articles[name];
            }
            return name;
        }
        public static bool IsNameOKWithArticle(string name)
        {
            if (articles.ContainsKey(name))
            {
                return false;
            }
            return true;
        }

    }//class
}//namespace
